<form name = "frm_updatemathang" method = "post" action = "">
<table width = "580" cellpadding = "2" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">
<tr> <th colspan = "2" bgcolor = "red"> CAP NHAT MAT HANG </th> </tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "center"> Ma LH </div> </td>
	<td width = "200" valign = "top">
		<select name = "cmb_choice" size = "1">
		<?php 
		if(is_array($data['listlh'])){
			foreach ($data['listlh'] as $item){
		?>
			<option value = "<?php echo $item['MaLH'];?>"
				<?php
					if($data['MaLH'] == $item['MaLH']){
						echo "selected";
					} 
					
				?>>
				<?php echo $item['TenLH'];?>
			</option>
		<?php
			}
		}
		?>
		</select>
	</td>
</tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "center"> Ten Mat Hang </div> </td>
	<td width = "200" valign = "top">
		<input name = "tenmh" type = "text" value = "<?php echo $data['TenMH'];?>"/>
	</td>
</tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "center"> Don Vi Tinh</div> </td>
	<td width = "200" valign = "top">
		<input name = "dvt" type = "text" value = "<?php echo $data['DVT'];?>"/>
	</td>
</tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "center"> Ma LH </div> </td>
	<td width = "200" valign = "top">
		<input name = "soluong" type = "text" value = "<?php echo $data['SoLuong'];?>"/>
	</td>
</tr>
<tr>
	<td width = "400" valign = "top" colspan = "2"> <div> <input name = "btok" type = "submit" value = "Cap Nhat"/> </div> </td>
</tr>
</table>
</form>
